/* 页面整体样式 */
.home-page {
  background-color: #0082d8;
  /* 蓝色背景 */
  padding-bottom: 50px;

  height: calc(100% - 120rpx);
  overflow-y: scroll;
}

.content-page {
  width: 100%;
  height: calc(100% - 60rpx);
  overflow: auto;
}

/* Logo 区域 */
.logo-container {
  text-align: center;
  margin-top: 60px;
  margin-bottom: 10px;
  display: flex;
  justify-content: center;
}

.logo-placeholder {
  width: 120px;
  height: 50px;
  background-color: #ffffff;
  color: #0082d8;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-size: 16px;
  font-weight: bold;
}

/* 搜索框 */
.search-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 10px 20px;
  background-color: #ffffff;
  border-radius: 20px;
  padding: 5px 10px;
}

.search-input {
  flex: 1;
  height: 40px;
  border: none;
  outline: none;
  font-size: 14px;
  color: #666;
  padding-left: 10px;
}

.search-input::placeholder {
  color: #aaa;
}

.search-icon-placeholder {
  width: 20px;
  height: 20px;
  background-color: #cccccc;
  border-radius: 50%;
  margin-left: 10px;
}

/* Banner 区域 */
.banner-container {
  margin: 4%;
  height: 240px;
  width: 92%;
  border-radius: 10px;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

/* 热门球员模块 */
.hot-players-container {
  margin: 20px 15px;
}

.hot-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.hot-players {
  display: flex;
  justify-content: space-between;
  height: 200px;
  margin-bottom: 10px;
}

.left-large {
  margin-right: 10px;
}

.player-large {
  flex: 1;
  background-color: #006db8;
  border-radius: 10px;
  padding: 10px;
  color: #ffffff;
  text-align: center;
  box-sizing: border-box;

}

.player-image-placeholder {

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;

}

.player-image-left {
  width: 100%;
  height: 80px;
  border-radius: 10px;
}

.player-image-right {
  width: 50px;
  height: 50px;
  border-radius: 25px;
}




.score {
  font-size: 18px;
  font-weight: bold;
}

.name {
  font-size: 14px;
  margin-top: 5px;
}

.desc {
  font-size: 12px;
  color: #ccc;
  margin-top: 5px;
  white-space: pre-wrap;
  /* 保留换行 */
}

.player-small {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.player-small-item {
  height: 100px;
  background-color: #006db8;
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.player-small-item:last-child {
  margin-bottom: 0;
}

/* 比赛进行中模块样式 */
.ongoing-matches {
  background-color: #ffffff;
  border-radius: 10px;
  margin: 20px;
  padding: 15px;
  position: relative;

  /* 比赛进行中标签 */
  .live-badge {
    position: absolute;
    top: -10px;
    left: 15px;
    background-color: #fda433;
    color: #333;
    font-size: 12px;
    border-radius: 10px;
    padding: 2px 6px;
    /* 可视情况加box-shadow等 */
  }

}

/* Tab 样式 */
.tab-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tab-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 14px;
  color: #666666;
  background-color: #f0f0f0;
  border-radius: 5px;
  margin-right: 5px;
  cursor: pointer;
}

.tab-item.active {
  color: #ffffff;
  background-color: #0082d8;
}

.match-info {
  margin-bottom: 10px;
}

.match-desc {
  font-size: 14px;
  color: #555555;
}

.match-date {
  font-size: 12px;
  color: #999999;
}

.match-table {
  margin-top: 10px;
}

.table-header,
.table-row {
  display: flex;
  justify-content: space-between;
  padding: 5px 0;
}

.header-item {
  flex: 1;
  font-size: 12px;
  color: #666666;
  font-weight: bold;
  text-align: center;
}

.row-item {
  flex: 1;
  font-size: 12px;
  color: #333333;
  text-align: center;
  border-bottom: 1px solid #e0e0e0;
  ;
}

.player-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.left {
  align-items: flex-start;
}

.player-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  margin-right: 5px;
}

.player-name {
  font-size: 12px;
  color: #333333;
}

.see-more {
  margin-top: 10px;
  font-size: 14px;
  color: #0082d8;
  text-align: center;
  cursor: pointer;
}

/* 热门赛事模块 */
.hot-events-container {
  margin: 20px 15px;
}

.hot-events-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 10px;
}

.hot-events-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.event-card {
  position: relative;
  height: 150px;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.event-image-container {
  flex: 1;
  margin: 20px 10px;
}

.event-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-info {
  flex: 2;
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.event-title {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 5px;
}

.event-location {
  font-size: 12px;
  color: #666666;
  margin-bottom: 5px;
}

.event-date {
  font-size: 12px;
  color: #999999;
  margin-bottom: 5px;
}

.event-status {
  font-size: 12px;
  color: #0082d8;
  font-weight: bold;
}

/* 球队活动模块 */
.team-activity-container {
  margin: 20px 15px;
}

.team-activity-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.team-activity-title {
  font-size: 16px;
  font-weight: bold;
  color: #ffffff;
}

.more-button {
  font-size: 12px;
  color: #ffffff;
  cursor: pointer;
}

.activity-scroll-view {
  display: flex;
  white-space: nowrap;
  overflow-x: scroll;
  width: 100%;
}

.activity-card {
  display: inline-block;
  width: 200px;
  margin-right: 10px;
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex-shrink: 0;
}

.activity-info {
  padding: 10px;
  display: flex;
  flex-direction: column;
}

.activity-title {
  font-size: 14px;
  font-weight: bold;
  color: #333333;
  margin-bottom: 5px;
}

.activity-date,
.activity-location {
  font-size: 12px;
  color: #666666;
  margin-bottom: 5px;
}

.activity-arrow {
  font-size: 14px;
  font-weight: bold;
  color: #0082d8;
}

.activity-image {
  width: 180px;
  height: 180px;
  padding: 0 10px 10px;
  object-fit: cover;
  border-radius: 10px;
}

/* 旅游活动模块 */
.travel-activity-container {
  margin: 20px 15px;

  .travel-activity-header {
    margin-bottom: 10px;

    .english-title {
      font-size: 12px;
      color: #fff;
      letter-spacing: 1px;
      text-transform: uppercase; // TRAVEL ACTIVITY
    }

    .title-cn {
      font-size: 16px;
      font-weight: bold;
      color: #fff;
    }
  }

  .travel-activity-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .travel-activity-item {
    display: flex;
    align-items: center;
    background-color: #ffffff;
    border-radius: 10px;
    padding: 10px;
    position: relative;
    /* 可以适当增加 box-shadow 或者 margin */
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); */
  }

  .travel-activity-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin-right: 10px;
  }

  .travel-activity-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;

    .activity-title {
      font-size: 14px;
      font-weight: bold;
      color: #333333;
      margin-bottom: 5px;
    }

    .activity-desc {
      font-size: 12px;
      color: #666666;
      white-space: pre-wrap; // 换行
    }
  }

  .plus-button {
    width: 24px;
    height: 24px;
    border-radius: 2px;
    background-color: #0082d8;
    color: #fff;
    text-align: center;
    line-height: 24px;
    font-weight: bold;
    position: absolute;
    right: 10px;
    bottom: 10px;
  }
}

/* 联盟球场模块 */
.league-stadium-container {
  margin: 20px 15px;

  .league-stadium-header {
    margin-bottom: 10px;

    .english-title {
      font-size: 12px;
      color: #fff;
      letter-spacing: 1px;
      text-transform: uppercase; // LEAGUE STADIUM
    }

    .title-cn {
      font-size: 16px;
      font-weight: bold;
      color: #fff;
    }
  }

  .stadium-card {
    background-color: #ffffff;
    border-radius: 10px;
    margin-bottom: 10px;
    /* box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1); 可选 */
    padding: 10px;
  }

  .stadium-info-box {
    display: flex;
    align-items: center;

    .stadium-logo {
      width: 50px;
      height: 50px;
      border-radius: 25px;
      margin-right: 10px;
    }

    .stadium-main {
      flex: 1;
      display: flex;
      flex-direction: column;
      justify-content: center;

      .stadium-name {
        font-size: 14px;
        font-weight: bold;
        color: #00aa88; // 或者其它绿色
        margin-bottom: 5px;
      }

      .stadium-location {
        font-size: 12px;
        color: #666666;
      }
    }

    .stadium-meta {
      display: flex;
      flex-direction: column;
      align-items: flex-end;

      .stadium-rating {
        display: flex;
        align-items: center;
        margin-bottom: 5px;

        .rating-stars {
          color: #ffa500; // 示例星星颜色
        }

        .rating-count {
          font-size: 12px;
          color: #999999;
          margin-left: 2px;
        }
      }

      .stadium-actions {
        display: flex;
        gap: 10px;

        .heart-icon,
        .share-icon {
          font-size: 14px;
          color: #666666;
        }
      }
    }
  }
}

/* 校友俱乐部 */
.alumni-club-container {
  margin: 20px 15px;

  .alumni-club-header {
    margin-bottom: 10px;
    flex-direction: column;


    .english-title {
      font-size: 12px;
      color: #fff;
      letter-spacing: 1px;
      text-transform: uppercase; // "ALUMNI CLUB"
    }

    .title-cn {
      font-size: 16px;
      font-weight: bold;
      color: #fff;
      margin-top: 5px;
    }
  }

  .alumni-banner {
    position: relative;

    .alumni-image {
      width: 100%;
      height: 180px;
      border-radius: 10px;
    }

    .alumni-overlay {
      /* 让文字覆盖在图上 (绝对定位) */
      position: absolute;
      left: 0;
      bottom: 0;
      width: 100%;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: flex-end;
      /* 靠下 */
      color: #fff;
      padding: 10px;
      box-sizing: border-box;

      .overlay-info {
        display: flex;
        align-items: center;
        margin-bottom: 10px;

        .info-avatar {
          width: 40px;
          height: 40px;
          border-radius: 20px;
          margin-right: 10px;
        }

        .info-desc {
          font-size: 14px;
          font-weight: bold;
          color: #fff;
        }
      }

      .overlay-actions {
        display: flex;
        align-items: center;
        justify-content: space-between;

        .action-item {
          display: flex;
          align-items: center;
          margin-right: 10px;

          .icon {
            font-size: 14px;
            margin-right: 4px;
          }

          .count {
            font-size: 12px;
          }
        }

        .dots {
          display: flex;
          align-items: center;

          .dot {
            width: 6px;
            height: 6px;
            border-radius: 3px;
            background-color: #ccc;
            margin-left: 5px;
          }

          .dot.active {
            background-color: #fff;
          }
        }
      }
    }
  }
}

/* 赞助商模块 */
.sponsor-container {
  margin: 20px 15px;

  .sponsor-header {
    margin-bottom: 10px;
    flex-direction: column;

    .english-title {
      font-size: 12px;
      color: #fff;
      letter-spacing: 1px;
      text-transform: uppercase; // "SPONSOR"
    }

    .title-cn {
      font-size: 16px;
      font-weight: bold;
      color: #fff;
      margin-top: 5px;
    }
  }

  .sponsor-list {
    display: flex;
    flex-wrap: wrap; // 多行换行
    gap: 10px; // 卡片之间的间距
  }

  .sponsor-item {
    min-width: 80px;
    height: 40px;
    border-radius: 20px;
    /* flex居中 */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;

    /* 如果有logo图片，就让图片自适应；仅文字则显示文本 */
    .sponsor-logo {
      width: 60px;
      height: 30px;
      object-fit: contain; // 保持纵横比
    }

    .sponsor-text {
      font-size: 14px;
      color: #fff; // 文字颜色
      font-weight: bold;
    }
  }
}

.content-class {
  background: white;
  border-radius: 5px;
}

/* 卡片区域 */
.live-score-card {
  position: relative;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-sizing: border-box;
  margin-bottom: 15px;

  /* 比赛进行中标签 */


  .live-info {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
  }

  .live-event-title {
    font-size: 16px;
    font-weight: bold;
    color: #333;
    margin-bottom: 4px;
  }

  .live-event-date {
    font-size: 12px;
    color: #666;
  }
}

/* Tab 区域 */
.live-tab-container {
  display: flex;
  background-color: #3375d6;
  border-radius: 20px;
  overflow: hidden;
  margin: 10px;

  .live-tab {
    flex: 1;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    color: #fff;
    cursor: pointer;
  }

  .live-tab.active {
    background-color: #004f9a;
  }
}

/* 成绩表格 */
.live-table {
  background-color: #fff;
  border-radius: 10px;
  padding: 10px;
  box-sizing: border-box;

  .table-header,
  .table-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

  .table-header {
    margin-bottom: 6px;

    .header-item {
      flex: 1;
      font-size: 12px;
      font-weight: bold;
      color: #666;
      text-align: center;
    }
  }

  .table-row {
    padding: 6px 0;
    border-bottom: 1px solid #eee;

    &:last-child {
      border-bottom: none;
    }

    .row-item {
      flex: 1;
      font-size: 12px;
      color: #333;
      text-align: center;
    }

    .player-cell {
      display: flex;
      align-items: center;
      justify-content: center;

      .player-avatar {
        width: 24px;
        height: 24px;
        border-radius: 12px;
        margin-right: 4px;
      }

      .player-name {
        font-size: 12px;
        color: #333;
      }
    }

    .tot.negative {
      color: #c51d1d;
      font-weight: bold;
    }
  }
}

/* 查看更多 */
.see-more {
  text-align: center;
  margin-top: 10px;
  color: #333;
  font-size: 14px;
  cursor: pointer;
}

.live-scoring-container {
  margin: 20px 15px;
  display: none;
}